<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- qtextlayout.cpp -->
  <title>FormatRange Struct | Qt GUI 5.14.2</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td ><a href="../qtdoc/index.html">Qt 5.14</a></td><td ><a href="qtgui-index.html">Qt GUI</a></td><td ><a href="qtgui-module.html">C++ Classes</a></td><td >FormatRange</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtgui-index.html">Qt 5.14.2 Reference Documentation</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-variables">Public Variables</a></li>
<li class="level1"><a href="#related-non-members">Related Non-Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">FormatRange Struct</h1>
<span class="small-subtitle">Struct FormatRange is declared in class <a href="qtextlayout.html">QTextLayout</a>.<br/></span>
<!-- $$$FormatRange-brief -->
<p>The <a href="qtextlayout-formatrange.html">QTextLayout::FormatRange</a> structure is used to apply extra formatting information for a specified area in the text layout's content. <a href="#details">More...</a></p>
<!-- @@@FormatRange -->
<ul>
<li><a href="qtextlayout-formatrange-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-variables"></a>
<h2 id="public-variables">Public Variables</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QTextCharFormat </td><td class="memItemRight bottomAlign"><b><a href="qtextlayout-formatrange.html#format-var">format</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtextlayout-formatrange.html#length-var">length</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qtextlayout-formatrange.html#start-var">start</a></b></td></tr>
</table></div>
<a name="related-non-members"></a>
<h2 id="related-non-members">Related Non-Members</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtextlayout-formatrange.html#operator-not-eq-3">operator!=</a></b>(const QTextLayout::FormatRange &amp;<i>lhs</i>, const QTextLayout::FormatRange &amp;<i>rhs</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtextlayout-formatrange.html#operator-eq-eq-1">operator==</a></b>(const QTextLayout::FormatRange &amp;<i>lhs</i>, const QTextLayout::FormatRange &amp;<i>rhs</i>)</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$FormatRange-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
</div>
<p><b>See also </b><a href="qtextlayout.html#setFormats">QTextLayout::setFormats</a>() and <a href="qtextlayout.html#draw">QTextLayout::draw</a>().</p>
<!-- @@@FormatRange -->
<div class="vars">
<h2>Member Variable Documentation</h2>
<!-- $$$format -->
<h3 class="fn" id="format-var"><a name="format-var"></a><span class="type"><a href="qtextcharformat.html">QTextCharFormat</a></span> FormatRange::<span class="name">format</span></h3>
<p>Specifies the format to apply.</p>
<!-- @@@format -->
<!-- $$$length -->
<h3 class="fn" id="length-var"><a name="length-var"></a><span class="type">int</span> FormatRange::<span class="name">length</span></h3>
<p>Specifies the numer of characters the format range spans.</p>
<!-- @@@length -->
<!-- $$$start -->
<h3 class="fn" id="start-var"><a name="start-var"></a><span class="type">int</span> FormatRange::<span class="name">start</span></h3>
<p>Specifies the beginning of the format range within the text layout's text.</p>
<!-- @@@start -->
</div>
<div class="relnonmem">
<h2>Related Non-Members</h2>
<!-- $$$operator!=$$$operator!=constQTextLayout::FormatRange&constQTextLayout::FormatRange& -->
<h3 class="fn" id="operator-not-eq-3"><a name="operator-not-eq-3"></a><span class="type">bool</span> <span class="name">operator!=</span>(const <span class="type"><a href="qtextlayout-formatrange.html">QTextLayout::FormatRange</a></span> &amp;<i>lhs</i>, const <span class="type"><a href="qtextlayout-formatrange.html">QTextLayout::FormatRange</a></span> &amp;<i>rhs</i>)</h3>
<p>Returns true if any of the <code>start</code>, <code>length</code>, or <code>format</code> fields in <i>lhs</i> and <i>rhs</i> contain different values respectively.</p>
<!-- @@@operator!= -->
<!-- $$$operator==$$$operator==constQTextLayout::FormatRange&constQTextLayout::FormatRange& -->
<h3 class="fn" id="operator-eq-eq-1"><a name="operator-eq-eq-1"></a><span class="type">bool</span> <span class="name">operator==</span>(const <span class="type"><a href="qtextlayout-formatrange.html">QTextLayout::FormatRange</a></span> &amp;<i>lhs</i>, const <span class="type"><a href="qtextlayout-formatrange.html">QTextLayout::FormatRange</a></span> &amp;<i>rhs</i>)</h3>
<p>Returns true if the <code>start</code>, <code>length</code>, and <code>format</code> fields in <i>lhs</i> and <i>rhs</i> contain the same values respectively.</p>
<!-- @@@operator== -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2020 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>
